﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PIT.Labs.ProjectRepository.Owl2DotNet
{
    /// <summary>
    /// Represents a datatype from an ontology
    /// </summary>
    public interface IDataType : IEntity
    {
        /// <summary>
        /// Validate if a serialized value is of the datatype
        /// </summary>
        /// <param name="s">serialized value</param>
        /// <returns>true if s is in a format according to the datatype, false otherwise</returns>
        bool Validate(String s);
    }
}
